package com.kgc.ssm.controller;

import com.github.pagehelper.Page;
import com.kgc.ssm.entity.EnquireDetail;
import com.kgc.ssm.entity.dto.QuoSearchParam;
import com.kgc.ssm.entity.dto.QuotationMaintenance;
import com.kgc.ssm.entity.dto.Result;
import com.kgc.ssm.entity.dto.SearchParam;
import com.kgc.ssm.service.QuotationMaintenanceService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/quotation")
public class QuotationMaintenanceController {
    @Resource
    private QuotationMaintenanceService quotationMaintenanceService;

    @GetMapping("/page")
    public Result<List<QuotationMaintenance>> findPage(QuoSearchParam param) {
        Result<List<QuotationMaintenance>>  page =
                quotationMaintenanceService.selectQuotationMaintenance(param);
        System.out.println("查询结果1: " + page);
        return page;
    }
}
